#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# author: maxiao
# description: 测试另一种方式启动chrome浏览器

import time

from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.service import Service

driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
driver.get("https://www.baidu.com")
time.sleep(5)
print(driver.page_source)

